<template>
  <div id="particulars">
    <v-detail
      :detailData="inputData"
      :inputConfig="inputConfig"
      :rules="rules"
      ref="input"
    ></v-detail>
  </div>

</template>

<script>
import detail from "commons/Detail";
import baseMixin from "@/mixins/BaseMixin";

export default {
  name: "particulars",
  props: {
    inputData: {
      type: Object
    }
  },
  mixins: [baseMixin],
  data () {
    return {
      inputConfig: [
        [
          {
            type: "input",
            label: this.$t('config.putawayStrategy'),
            props: "putawaystrategykey",
            disabled: !this.$parent.newFlag,
          },
          {
            type: "input",
            label: this.$t('common.desc'),
            props: "descr",
          },
        ]
      ],
      rules: {
        putawaystrategykey: [
          { required: true, trigger: 'blur' },
        ],
        descr: [
          { required: true, trigger: 'blur' },
        ]
      },
    }
  },
  computed: {},
  methods: {},
  mounted () {

  },
  components: {
    "v-detail": detail,
  },

}
</script>

<style scoped>
</style>
